package com.kk.mediator.smarthouse;

/**
 * @author o_o
 * @date 2022-06-16
 */
public abstract class Colleague {

    public String name;
    private Mediator mediator;

    public Colleague(Mediator mediator, String name) {
        this.mediator = mediator;
        this.name = name;
    }

    public Mediator getMediator() {
        return mediator;
    }

    public abstract void sendMessage(int stateChange);

}
